﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Planisoft.Entities;

namespace Planisoft.DAO
{
    public class TipoDocumentoIdDAO : MasterDataAcces, ITipoDocumentoIdDAO
    {

        public List<TipoDocumentoId> GetALLFromTipoDocumento()
        {
            var query = from c in Context.TipoDocumentoIds
                            orderby c.DescTipDoc ascending
                            select c;
            
            return query.ToList();

            //return Context.TipoDocumentoIds.OrderBy(c => c.DescTipDoc).ToList();

        }
    }
}
